package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService_Lizekai {

    public void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    public PageResult findPage(QueryPageBean queryPageBean);

    public List<Permission> findAll();

    public Role findById(int id);

    public Result deleteById(int id);

    public void update(Role role, Integer[] permissionIds, Integer[] menuIds);

    public List<Menu> findMenuAll();

    public List<Integer> findPermissionIdByRoleId(int id);

    public List<Integer> findMenuIdByRoleId(int id);
}
